home *** CD-ROM | disk | FTP | other *** search
- /* gfopec.c - generalized buffer file open function */
- /* allows either Binary or ASCII treatment */
- #include "stdio.h"
- #include "cminor.h"
-
- /* Computer Innovarions version */
-
- FILE *fopen() ;
-
- FILE *gfopen(fn,fmode,ft)
- char fn[] ;
- char fmode[] ;
- int ft ;
- {
- char mode_string[20] ;
-
- strcopy(mode_string,fmode) ; /* copy input mode string */
- if( ft == BIN_MODE )
- strcat( mode_string,"b" ) ;
- return( fopen(fn,mode_string ) ;
- }
- /* end of version */
-
-